<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFacilitatorTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//图片表
		Schema::create('facilitator', function(Blueprint $table)
		{
			$table->increments('id') ;                  //服务商标识
			$table->unsignedInteger('user_id');         //用户标识
			$table->string('nickname')->nullable();                //昵称
			$table->string('realname')->nullable();                 //真实姓名
			$table->string('province')->nullable();
			$table->string('city')->nullable();
			$table->string('area')->nullable();
			$table->string('invite_num')->nullable();
			$table->string('telephone')->nullable();
			$table->string('qq')->nullable();
			$table->string('email')->nullable();
			$table->integer('img_photo_id')->default(0);
			$table->integer('state')->default(0);
			$table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schama::drop('facilitator') ;
	}

}
